package com.mushuilingfeng.ddd.user.domain.user.event;

import com.mushuilingfeng.ddd.framework.event.IDomainEvent;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户被锁事件
 *
 * @author 沐水淋风
 * @date 2024/10/20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserLockedEvent implements IDomainEvent {
    private Long userId;
    
    @Override
    public String topic() {
        return "USER_EVENT_TOPIC";
    }
    
    @Override
    public String tag() {
        return "UserLocked";
    }
}
